<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProceedListsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('proceed_lists', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('order_number')->comment('接单支付订单号');
            $table->unsignedInteger('user_id')->comment('用户');
            $table->unsignedInteger('order_id')->comment('订单');
            $table->unsignedTinyInteger('status')->default(1)->comment('状态 1待结算 2已结算 3已失效');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('proceed_lists');
    }
}
